package ${sourceBasePackage}.service<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>;

import com.github.pagehelper.PageInfo;
import ${sourceBasePackage}.dto<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>.${entityName}Dto;
import ${sourceBasePackage}.dto<#if sourceIncludeModule == 'Y'>.${moduleName}</#if>.${entityName}SearchDto;

/**
 * ${description}Service
 * @author ${author}
 */
public interface ${entityName}Service{

	/**
	 * 分页查询
	 * @param ${entityName?uncap_first}SearchDto
	 * @return
	 */
	PageInfo<${entityName}Dto> getListByPage(${entityName}SearchDto ${entityName?uncap_first}SearchDto);

	/**
	 * 通过id查询
	 * @param ${pkPropertyName}
	 * @return
	 */
	${entityName}Dto getById(${pkPropertyType} ${pkPropertyName});

	/**
	 * 新增
	 * @param ${entityName?uncap_first}Dto
	 */
	void add(${entityName}Dto ${entityName?uncap_first}Dto);

	/**
	 * 修改
	 * @param ${entityName?uncap_first}Dto
	 */
	void update(${entityName}Dto ${entityName?uncap_first}Dto);

	/**
	 * 删除
	 * @param ${pkPropertyName}
	 */
	void delete(${pkPropertyType} ${pkPropertyName});

}
